home *** CD-ROM | disk | FTP | other *** search
/ Programmers Heaven 2 / Programmers Heaven 2.iso / files / graphics / library / wgt51_r2.zip / WGT5 / README.1ST < prev   
Text File  |  1996-08-02  |  5KB  |  133 lines

  1.                         WGT 5.1 for Watcom C/C++ 10.x
  2.                               SHAREWARE VERSION
  3.                              by Egerter Software
  4.  
  5.              (Full documentation in MS Word 6.0 format, WGT5.DOC)
  6.  
  7. ******************************************************************************
  8. Installing the Software
  9. -----------------------
  10.  
  11. At the DOS prompt, type INSTALL and the installation program will begin.
  12. This program will copy all or part of the toolkit to your hard drive.
  13. It will create a directory called WGT5 in the root directory. Each part of
  14. the toolkit will have a subdirectory in the WGT5 directory.
  15.  
  16. Follow the on-screen prompts to complete the installation.
  17.  
  18. ******************************************************************************
  19. Making Example Files
  20. --------------------
  21.  
  22.         If an executable version of a source code file is not present, then
  23. you must build one using the included batch files. Most batch files can simply
  24. be run to produce the EXE, but the MAKE.BAT in the WGT5\EXAMPLES must be used
  25. as:     MAKE wgt04       or     MAKE wgt12  for example.
  26.  
  27. Files in the main example directory are numbered from 01 to 70. There is one
  28. exception to this rule, because WGT68 has its own directory and contains 5
  29. versions of the program.
  30.  
  31. ******************************************************************************
  32. **** ATTENTION WGT 4.0 Users ****
  33.     Major Changes from WGT 4.0
  34. =================================
  35.  
  36. New structures:
  37.  
  38. extern struct {
  39.   short xres;                   /* Horizontal screen resolution          */
  40.   short yres;                   /* Vertical screen resolution            */
  41.   short videomode;              /* Current videomode                     */
  42.   int   videobanksize;          /* Size of memory bank (VESA)            */
  43.   short (*bankswitch)(short);   /* Pointer to bank switch routine (VESA) */
  44. } WGT_SYS;
  45.  
  46.         This structure contains a few important statistics which can be
  47. read by the user. DO NOT change these variables yourself. VIDEOMODE does
  48. not change when using wsetmode, only with vga256 and wvesa_init.
  49.  
  50.  
  51.  
  52. typedef struct {
  53.   short but;                    /* Mouse button being pressed  */
  54.   short mx;                     /* Horizontal mouse coordinate */
  55.   short my;                     /* Vertical mouse coordinate */
  56. } callback_data;
  57. extern callback_data mouse;
  58.  
  59.         All mouse variables are now found within this structure. 
  60.  
  61.  
  62.  
  63.         The scrolling library has been dramatically altered. Many routines
  64. now use different parameters.  The basic command order has been maintained
  65. but should be verified against the new examples.
  66.  
  67. ******************************************************************************
  68. CONVERTING TURBO/BORLAND C PROGRAMS TO WATCOM
  69.  
  70. To convert previous WGT programs to Watcom, simply do a search and replace on:
  71.  
  72. Search for              Replace with            *** Order is important!
  73. ==========              ============
  74. int                     short
  75. long                    int
  76. but                     mouse.but
  77. mx                      mouse.mx
  78. my                      mouse.my
  79.  
  80. far                     NOTHING (remove all FAR references in code)
  81.  
  82.  
  83.  
  84. Functions Which Have Been Eliminated:
  85. =====================================
  86.  
  87. All EMS functions
  88. All SB routines
  89. wdetectcpu
  90.  
  91. ******************************************************************************
  92.  
  93. Library File Changes:
  94. =====================
  95.  
  96. All library files have been renamed to include WC indicating Watcom.
  97.  
  98. WFLIC_WC.LIB   -now uses memory instead of EMS, so check the include file
  99.                 for variable names and defines
  100.  
  101. Old name                        New Name
  102. ********                        ********
  103. WGT4.LIB                        WGT5_WC.LIB
  104. WSPR.LIB                        WSPR_WC.LIB
  105. WGTJOY.LIB                      WJOY_WC.LIB
  106. WGTSCROL.LIB                    WSCR_WC.LIB
  107. WGT3D.LIB                       WGT3D_WC.LIB
  108. WFILE.LIB                       WFILE_WC.LIB
  109. WGTMENU.LIB                     WMENU_WC.LIB
  110. WGTFLIC.LIB                     WFLIC_WC.LIB
  111. WGTVESA.LIB                     WVESA_WC.LIB
  112.  
  113.  
  114. ******************************************************************************
  115.  
  116. Other Notes
  117. ===========
  118.  
  119. - wsetscreen now works with ANY block. Clipping variables are set to match
  120.   the image dimensions.
  121.  
  122. - many DOS and BIOS functions use different structures and parameters than
  123.   the Turbo/Borland versions. Be sure to check the manuals when trying to
  124.   find compatibility errors (compiler warnings).
  125.  
  126. - All image loading functions are capable of handling ANY size picture as
  127.   long as the machine has enough memory to hold it. Our machines have
  128.   8 megs of RAM and therefore a 2900x2900 pixel image is out of reach, but
  129.   a 2800x2800 pixel image is possible (as long as program size is small :)
  130.  
  131.  
  132.  
  133.